package com.ruoyi.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
import java.util.Date;

/**
 * 订单表 hl_order
 * 
 * @author ruoyi
 * @date 2019-01-22
 */
public class Order extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 订单号 */
	private String orderNum;
	/** 订单内容描述 */
	private String content;
	/** 订单时长(月) */
	private Integer months;
	/** 金额(分) */
	private Integer amount;
	/** 订单状态(1-待支付,2-已支付,3-支付失败) */
	private Integer status;
	/** 预订单号 */
	private String payid;
	/** 套餐类型(1:包月,2:VIP-A,3:VII-A,4:VII-B,5:VII-C) */
	private Integer ttype;
	/** 支付类型(1-微信，2-支付宝) */
	private Integer tpye;
	/** 关联用户 */
	private Integer userId;
	/**  */
	private String createBy;
	/**  */
	private Date createTime;
	/**  */
	private String updateBy;
	/**  */
	private Date updateTime;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setOrderNum(String orderNum) 
	{
		this.orderNum = orderNum;
	}

	public String getOrderNum() 
	{
		return orderNum;
	}
	public void setContent(String content) 
	{
		this.content = content;
	}

	public String getContent() 
	{
		return content;
	}
	public void setMonths(Integer months) 
	{
		this.months = months;
	}

	public Integer getMonths() 
	{
		return months;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	
	public String getPayid() {
		return payid;
	}

	public void setPayid(String payid) {
		this.payid = payid;
	}

	public Integer getTtype() {
		return ttype;
	}

	public void setTtype(Integer ttype) {
		this.ttype = ttype;
	}

	public void setTpye(Integer tpye) 
	{
		this.tpye = tpye;
	}

	public Integer getTpye() 
	{
		return tpye;
	}
	public void setUserId(Integer userId) 
	{
		this.userId = userId;
	}

	public Integer getUserId() 
	{
		return userId;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}

    public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNum", getOrderNum())
            .append("content", getContent())
            .append("months", getMonths())
            .append("status", getStatus())
            .append("tpye", getTpye())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
